import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mac
 * Date: 2022-09-15
 * Time: 19:53
 */
public class TestDemo {
    //模拟HashMap
    public static String func(String str) {
        StringBuilder sb = new StringBuilder();
        int[] array = new int[58];
        for (int i = 0; i < str.length(); i++) {
            /*char ch = str.charAt(i);
            if (!sb.toString().contains(ch + "")){
                sb.append(ch);
            }*/
            char ch = str.charAt(i);
            if (array[ch - 65] == 0){
                sb.append(ch);
                array[ch - 65] = 1;
            }
        }
        return sb.toString();
    }

    public void merge(int A[], int m, int B[], int n) {
        for (int i = 0; i < m; i++) {
            A[m + i] = B[i];
        }
        Arrays.sort(A);
    }
}
